package xjh.him.netty.dto;


import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import xjh.him.entity.Chat;
import xjh.him.entity.ChatMsg;

public class ChatDto {
    @Data
    public static class InsertReq {
        Integer meId;
        Integer type;
        List<Integer> memberIds;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class InsertResp {
        Integer chatId;
    }

    @Data
    public static class SelectByUserIdReq {
        Integer meId;
        Integer page;
    }

    @Data
    public static class ChatItem {
        Chat chat;
        ChatMsg chatMsg;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SelectByUserIdResp {
        Integer page;
        List<ChatItem> chatItemList;
    }
}
